package com.qf.commons.base.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * author Ken
 * create_time 2022/11/29
 */
@Data
@Accessors(chain = true)
public class BaseEntity implements Serializable {
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    //最后修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    //状态
    @TableField(fill = FieldFill.INSERT)
    private Integer status;
    //删除标识 0-可用 1-被删除
    @TableField(fill = FieldFill.INSERT)
    private Integer delFlag;
}
